public class Student {
    private int id;         // 数据库自增ID
    private String account; // 登录账号（学号）
    private String password;// 密码
    private String name;    // 姓名

    public Student() {}

    public Student(String account, String password, String name) {
        this.account = account;
        this.password = password;
        this.name = name;
    }

    // Getter和Setter
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getAccount() { return account; }
    public void setAccount(String account) { this.account = account; }
    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
}